<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Infotech Ltd.
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2005/09/20 22:11:20 $)
// $RCSfile: header.php,v $ : $Revision: 1.9 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//###################################
//=======================================


if (!defined("INSWIFT")) {
	// File being called directly, end it
	trigger_error("Unable to process $PHP_SELF", E_USER_ERROR);
}


?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title><?php echo SWIFTPRODUCT; ?> <?php echo SETUPTYPE; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<STYLE type=text/css>
A:visited {
	COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
	COLOR: red; TEXT-DECORATION: none
}
A:link {
	COLOR: #000000; TEXT-DECORATION: none
}
.gtext
{
    FONT-SIZE: 11px;
    COLOR: #000000;
    FONT-FAMILY: Verdana, Arial;
}
.logotext
{
    FONT-SIZE: 34pt;
    FONT-FAMILY: Tahoma, Verdana, Arial;
}
fieldset {
  border:1px dotted gray;
  background: white;
}

legend {
  padding: 0.2em 0.5em;
  color:green;
  font-size:90%;
  background: white;
  text-align:right;
  FONT-SIZE: 11px;
  COLOR: #000000;
  FONT-FAMILY: Verdana, Arial
}
 
.inputbutton {
	font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #438CCA;
    padding:2px;
    background-color:#FFFFFF;
    border: 1px solid;
    vertical-align:top;
    cursor:pointer;
}
 
.disabledbutton {
	font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #CCCCCC;
    padding:2px;
    background-color:#FFFFFF;
    border: 1px dotted;
    vertical-align:top;
    cursor:pointer;
}
 
.inputbuttonred {
	font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: red;
    padding:2px;
    background-color:#FFFFFF;
    border: 1px solid;
    vertical-align:top;
    cursor:pointer;
}

.inputtext
{	BACKGROUND-COLOR: #FFFFFF;
	COLOR: #000000;
	FONT-FAMILY: Verdana, Tahoma;
	FONT-SIZE: 12px;
	BORDER-STYLE: solid;
	BORDER-COLOR: #333333;
	BORDER-WIDTH: 1px;
	PADDING: 2px 2px 2px 2px;
	MARGIN: 0px;
}

.mediumtext
{
    FONT-SIZE: 12px;
    COLOR: #000000;
    FONT-FAMILY: Verdana, Arial
}

.smalltext
{
    FONT-SIZE: 11px;
    COLOR: #000000;
    FONT-FAMILY: Verdana, Arial
}

.navtitle
{
    FONT-SIZE: 11px;
    COLOR: #454545;
    FONT-FAMILY: Verdana, Arial;
	VERTICAL-ALIGN: middle;
	HEIGHT: 20px;
	WIDTH: 100%;
}

.navsection {
text-decoration: none;
margin: 0 0 0 0;
border: 1px solid #CDCDCD;
background: #FFFFFF url(navtitlebg.gif) no-repeat top left;
-moz-border-radius: 4px 4px 0px 0px;
COLOR: #61718C;
WIDTH: 100%;
}

.navsub {
padding: 4px 4px 4px 4px;
}

.navbar {
background: #F0EADE url(navbarbg.gif) no-repeat bottom left; PADDING: 6px 6px 6px 6px;
}

.menusectiondefault
{
	BACKGROUND: #727172 url(menusectiondefbg.gif);
	COLOR: #EAEAEA;
	FONT-FAMILY: Verdana, Arial, Helvetica;
	FONT-SIZE: 11px;
	CURSOR: pointer;
}

</STYLE>
<script language="Javascript">
	// Workaround for the stupid 100% width bug in IE
	function ClearError() { return true; }
	window.onerror = ClearError;
</script>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0" onload="docLoaded()">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="500">
  <tr>
    <td valign="top" align="left"><form name="setupform" method="post" action="<?php
	if (SETUPTYPE == "Setup") {
		echo "setup.php";
	} else if (SETUPTYPE == "Upgrade") {
		echo "upgrade.php";
	} else if (SETUPTYPE == "Impex") {
		echo "impex.php";
	}
	?>">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
        <tr>
          <td align="left"><img src="<?php echo strtolower(SWIFTPRODUCT); ?>.gif" /></td>
		  </tr>
		  </table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">

    <tr height="4">
    <td><img src="space.gif" width="1" height="4"></td>
  </tr>
  <tr height="1">
    <td bgcolor="#C6C3C6"><img src="space.gif" width="1" height="1"></td>
  </tr>
  <tr height="4">
    <td bgcolor="#F0F0F0"><img src="space.gif" width="1" height="4"></td>
  </tr>
  <tr>
    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="left" bgcolor="#727172" class="menusectiondefault"><span class="gtext"><font color="#FFFFFF"><strong>&nbsp;<?php echo $_SWIFT["steps"][$_REQUEST["step"]]; ?></strong></font></span></td>
            <td align="left" bgcolor="#727172" class="menusectiondefault"><img src="space.gif" width="1" height="21"></td>
          </tr>
        </table></td>
      </tr>
          <tr bgcolor="#85B8E3" height="1">
            <td colspan="6"><img src="space.gif" width="1" height="5"></td>
          </tr>


        <tr>
          <td align="left" valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr height="400">
                <td width="170" rowspan="2" align="left" valign="top" bgcolor="#F0EADE" class="navbar">
					<div class="navsection"><div class="navsub">
					<div class="navtitle"><img src="doublearrowsnav.gif" align="absmiddle" border="0" />&nbsp;Details</div>
				<table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="left" valign="top"><font color="#CCCCCC" size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php
					for ($ii=0; $ii<count($_SWIFT["steps"]); $ii++)
					{
						if ($ii < $_REQUEST["step"])
						{
							?><font color="#666666"><s><img src="icon_rightarrowblue.gif" border="0" align="absmiddle" /> <?php echo $_SWIFT["steps"][$ii]; ?></s></font> <br><?php
						} else if (($_REQUEST["step"]+1) == count($_SWIFT["steps"])) {
							?><font color="#666666"><img src="icon_rightarrowblue.gif" border="0" align="absmiddle" /> <?php echo $_SWIFT["steps"][$ii]; ?></font> <br><?php
						} else if ($_REQUEST["step"] == $ii) {
							?><font color="#666666"><img src="icon_rightarrowblue.gif" border="0" align="absmiddle" /> <?php echo $_SWIFT["steps"][$ii]; ?></font> <br><?php
						} else {
							?><img src="icon_rightarrowgray.gif" border="0" align="absmiddle" /> <?php echo $_SWIFT["steps"][$ii]; ?> <br><?php
						}
						
						if ($ii == 2 && SETUPTYPE == "Upgrade" && count($_SWIFT["versiontable"]) > 0)
						{
							?><font color="#666666"><ul type="circle" style="margin-top:0px; margin-bottom:0px;">
							<?php
								for ($kk=0; $kk<count($_SWIFT["versiontable"]); $kk++)
								{
									?><li><?php echo $_SWIFT["versiontable"][$kk];?></li><?php
								}
							?>
							</ul></font>
							<?php
						}
					}
					?></font></td>
                  </tr>
                </table>
					</div>
					</div>
				</td>
                <td width="1" rowspan="2" align="left" valign="top" bgcolor="CCCCCC" class="smalltext"><img src="space.gif" width="1" height="1"></td>
                <td align="left" valign="top">
				
				<table width="100%"  border="0" cellspacing="0" cellpadding="4">
                    <tr>
                      <td><table width="100%"  border="0" cellspacing="0" cellpadding="4">
                        <tr>
                          <td>